package org.jgs1904.oopbase.practice.overload;

/**
 * Learn Java from https://www.liaoxuefeng.com/
 *
 * @author liaoxuefeng
 */
public class Person {

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String xiao, String name) {
        double random = Math.random();
        System.out.println(random);
        if (random > 0.5) {
            this.name = xiao;
        } else {
            this.name = name;
        }
    }

}
